<?php error_reporting(0) ?>
<input 
    type="hidden" 
    value="<?php echo $item->album_id ?>" 
    id="album_id" name="album_id"
    />
<ul class="nav nav-tabs">
	<li class="active">
		<a href="#tab_album_info" data-toggle="tab" 
			
			>Set Menu</a>
	</li>
	<li class="">
		<a href="#tab_album_image" data-toggle="tab" 
			
			>Thực đơn</a>
	</li>
</ul>
<div class="tab-content" style="margin-top:1px">
	<div class="tab-pane active" id="tab_album_info">
	

<form id="_form_edit_panel" name="_form_edit_panel" 
      action="" method="POST" onsubmit="return false;"
      target="integration_asynchronous" autocomplete="off">
    <div class="widget- row-fluid">
        <div class="well form-horizontal" style="border:none">
		
			
			<input type="hidden" name="album_code" id="album_code" 
				value="<?php echo !empty($item->album_code)?$item->album_code:$code ?>"/>
			<input type="hidden" name="album_type" id="album_type" 
				value="<?php echo !empty($item->album_type)?quotes_to_entities($item->album_type):$type ?>"/>
			
            <div class="control-group">
                <label class="control-label">Title :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="album_title" name="album_title" 
                           value="<?php echo quotes_to_entities($item->album_title) ?>"
                           />
                </div>
            </div>
			
			<div class="control-group">
                <label class="control-label">Content :</label>
                <div class="controls">
					<textarea 
							rows="6"
							id="album_content" name="album_content" 
							class="span12 validate[required]"
							data-prompt-position="topLeft:-1,-5"
							><?php echo ($item->album_content) ?></textarea>
                </div>
            </div>
            
			<!--
			<div class="control-group">
                <label class="control-label">Thumb :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="album_thumb" name="album_thumb" 
                           value="<?php echo quotes_to_entities($item->album_thumb) ?>"
                           />
					<i class="icon-picture field-icon" style="cursor:pointer" 
						onclick="BrowseServer('#album_thumb')"
						title="CHOOSE IMAGE"></i>
                </div>
            </div>
            -->

			<div class="control-group">
				<label class="control-label">&nbsp;</label>
				<div class="controls">
					<div class="span6">
						<div>POSITION</div>
						<input type="number" 
							class="span12"
							id="album_position" name="album_position" 
							value="<?php echo $item->album_position ?>"
							/>
					</div>
					<div class="span6">
						<div>STATUS</div>
						<select id="album_status" name="album_status" class=" span12">
							<option value="true" <?php if($item->album_status!='false') echo 'selected=1' ?>>ENABLE</option>
							<option value="false">DISABLE</option>
						</select>
						
					</div>
				</div>
			</div>
			
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div>
                        <?php if (!empty($item->album_insert)) echo "Created  : $item->album_insert" ?>
                    </div>
                    <div>
                        <?php if (!empty($item->album_update)) echo "Modified : $item->album_update" ?>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
    
</form>
	</div>
	<div class="tab-pane" id="tab_album_image">
		<div style="-margin:-14px -14px 0 -14px">
			<ul class="toolbar">
				<li><a href="#" title="Add entry" onclick="TC_ALBUM.onAddImage()"><i class="icon-plus"></i><span>Thêm thực đơn</span></a></li>
				<li><a href="#" title="Refresh" onclick="TC_ALBUM.onImageRefresh()"><i class="icon-refresh"></i><span>Tải lại</span></a></li>
				
			</ul>
			<div style="padding-bottom:26px">
				<table class="table table-striped table-bordered" id="album_photo">       
					<thead>
						<tr>
							<th>&nbsp;</th>
							<th>&nbsp;</th>
							<th>Thực đơn</th>
							<th>Vị trí</th>
							<th>Trạng thái</th>
						</tr>
					</thead>
					<tbody>

					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>